package mapper;

import domain.Admin;

import java.util.List;

/**
 * Created by jianweilin on 16/8/28.
 */
public interface AdminMapper {
    Admin getAdminById(Integer id);

    Integer saveAdmin(Admin admin);

    List<Admin> getAdminByUserNameOrNickname(Admin admin);
    List<Admin> getAdminByAdmins(List<Admin> admin);

    List<Admin> getAdminByAnyOneCondition(Admin admin);

    Integer updateById(Admin admin);
}
